package client.main;


import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import client.utility.PacketId.PacketID;


public class Writer {
	private DataOutputStream writer; 
	
	public Writer(OutputStream ir){
		writer=new DataOutputStream(ir); 
	}
	
	public void write(PacketID id, Object content) throws IOException{
		String tmp=id.toString()+content.toString()+"\n";
		
		writer.write(tmp.getBytes());
	}
}
